/*
 * mgcars.h
 *
 *  Created on: 21 Nov 2011
 *      Author: marco
 */

#ifndef MGCARS_H_
#define MGCARS_H_

#define LOG "./mgcars.log"
#define TMP "tmp"
#define SOCKPATH "./tmp/cars.sck"
#define UNIX_PATH_MAX 108

#define PWD_ERR "Errore, password errata!\n"
#define ALREADY_ERR "Errore utente già collegato al sistema\n"

int init(char *,char *);

void serve();


int signal_handling();

static void sigint_handler(int);

static void sigterm_handler(int);
static void sigpipe_handler(int);//nuovo


#endif /* MGCARS_H_ */
